Crate pretty_xmlish
source ·Expand description
How to use this library? Very easy!
use pretty_xmlish::{Pretty, PrettyConfig};
use std::collections::BTreeMap;
// This class controls the expected width, indent size, and more.
let mut config = PrettyConfig::default();
// Other factory methods are available
let pretty = Pretty::simple_record("BatchNestedLoopJoin",
BTreeMap::new(), // fields, if any
vec![] // children, if any
);
let mut out = String::with_capacity(114514);
let w = config.unicode(&mut out, &pretty);
// w is the width of the output
// output is stored in `out`
Modules
Structs
Enums
- Use
into
!!
Type Definitions
- Cow-str associative array